package com.cn.bukeManage.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

//这是数据统计管理
@Controller
@RequestMapping("/data")
public class DataController {

	//用户信息统计
	@RequestMapping("/customerData")
	public String customerData(Model model){
		model.addAttribute("oneMenu","data");
		model.addAttribute("twoMenu","customerData");
		return "data/customerData";
	}
	//工人信息统计
	@RequestMapping("/workerData")
	public String worderData(Model model){
		model.addAttribute("oneMenu","data");
		model.addAttribute("twoMenu","workerData");
		return "data/workerData";
	}
	//经销商信息统计
	@RequestMapping("/dealerData")
	public String dealerData(Model model){
		model.addAttribute("oneMenu","data");
		model.addAttribute("twoMenu","dealerData");
		return "data/dealerData";
	}
	//供货商信息统计
	@RequestMapping("/supplierData")
	public String supplierData(Model model){
		model.addAttribute("oneMenu","data");
		model.addAttribute("twoMenu","supplierData");
		return "data/supplierData";
	}
	//商家信息统计
	@RequestMapping("/businessData")
	public String businessData(Model model){
		model.addAttribute("oneMenu","data");
		model.addAttribute("twoMenu","businessData");
		return "data/businessData";
	}
	//工厂信息统计
	@RequestMapping("/factoryData")
	public String factoryData(Model model){
		model.addAttribute("oneMenu","data");
		model.addAttribute("twoMenu","factoryData");
		return "data/factoryData";
	}
	//售后数据统计
	@RequestMapping("/customerServiceData")
	public String customerServiceData(Model model){
		model.addAttribute("oneMenu","data");
		model.addAttribute("twoMenu","customerServiceData");
		return "data/customerServiceData";
	}
}
